#ifndef _NOEUD_H_
#define _NOEUD_H_

#include <iostream>
#include <vector>
#include "Position.h"
#include <cmath>

class Noeud{

	public:
	
		Noeud( Position pos, Noeud* fin);
		void setPredecesseur( Noeud* n);
		Noeud* getPredecesseur();
		Position getPosition();
		float getCout();
        void setObstacle(Bloc obstacle);
        Bloc getObstacle();

        /// Compare a node to another, return true if same or false if not
        bool is(Noeud n);

	private:

        // la position du noeud
		Position pos;

		Noeud* predecesseur;
		float cout;

        // l'obstacle auquel est éventuellement attaché un noeud
        Bloc obstacle;
};

#endif
